﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Master.Master" AutoEventWireup="true"
    CodeBehind="wFrmCanibalizacionMovimiento.aspx.cs" Inherits="Crosland.Automotriz.Web.Canibalizacion.wFrmCanibalizacionMovimiento" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">
    <div class="main-header" style="width: 100%;">
        <div class="main-titulo">
            Canibalización
        </div>
    </div>
    <div class="content-form">
        <table>
            <tr>
                <td class="filas2">
                    <dx:ASPxButton ID="btnNuevo" runat="server" Text="Nuevo" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                        Width="100px" OnClick="btnNuevo_Click">
                        <Image Url="~/Images/bt_new_button.gif">
                        </Image>
                    </dx:ASPxButton>
                </td>
                <td class="filas2">
                    <dx:ASPxButton ID="btnModificar" runat="server" Text="Modificar" AutoPostBack="False"
                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="100px"
                        OnClick="btnModificar_Click">
                        <Image Url="~/Images/edit2.gif">
                        </Image>
                    </dx:ASPxButton>
                </td>
                <td class="filas2">
                
                <dx:ASPxButton ID="btnAnular" runat="server" Text="Anular" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                        Width="100px" onclick="btnAnular_Click">
<ClientSideEvents Click="function(s, e) {
	PopupMsjConfirmacion.Show();
}"></ClientSideEvents>

                        <Image Url="~/Images/delete.png">
                        </Image>
                       
                    </dx:ASPxButton>
                
                </td>
                <td class="filas2">
                    <dx:ASPxButton ID="btnSalir" runat="server" Text="Salir" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                        Width="100px" OnClick="btnSalir_Click">
                        <Image Url="~/Images/logout.png">
                        </Image>
                    </dx:ASPxButton>
                </td>
            </tr>
        </table>
        
                    <dx:ASPxRoundPanel ID="rpCanibalizacion" runat="server" 
            Width="1286px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                        CssPostfix="Office2010Blue" GroupBoxCaptionOffsetX="6px"
                        GroupBoxCaptionOffsetY="-19px" HeaderText="" 
            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
            ShowHeader="False">
                        <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="10px" />
                        <HeaderStyle>
                            <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="3px" />
                        </HeaderStyle>
                        <PanelCollection>
                            <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                                <dx:ASPxGridView ID="grdListadoCanibalizacionMov" runat="server" AutoGenerateColumns="False"
                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                    Width="100%" KeyFieldName="ID_LOG_CANIB_MOV_CAB" 
                                    OnAfterPerformCallback="grdListadoCanibalizacionMov_AfterPerformCallback" 
                                    OnHtmlRowPrepared="grdListadoCanibalizacionMov_HtmlRowPrepared">
                                    <Columns>
                                        <dx:GridViewDataTextColumn Caption="Nro.Mov" FieldName="ID_LOG_CANIB_MOV_CAB" VisibleIndex="0"
                                            Width="20px">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="id_log_canibalizacion_cab" FieldName="ID_LOG_CANIBALIZACION_CAB"
                                            Visible="False" VisibleIndex="1">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Movimiento" FieldName="DES_CORTA" VisibleIndex="7"
                                            Width="70px">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Fecha.&lt;/br&gt;Canibalización" FieldName="FECHA_CANIBALIZACION"
                                            VisibleIndex="8" Width="80px">
                                            <PropertiesTextEdit DisplayFormatString="dd/MM/yyyy">
                                            </PropertiesTextEdit>
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Usuario" FieldName="USUARIO" VisibleIndex="9"
                                            Width="100px">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Observación" FieldName="DESCRIPCION" VisibleIndex="10"
                                            Width="200px">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn FieldName="TIPO_MOVIMIENTO" Visible="False" 
                                            VisibleIndex="13">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Marca" FieldName="DES_MARCA" ShowInCustomizationForm="True"
                                            VisibleIndex="2" Width="80px">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Modelo" FieldName="DES_MODELO" ShowInCustomizationForm="True"
                                            VisibleIndex="3" Width="230px">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Color" FieldName="DES_COLOR" ShowInCustomizationForm="True"
                                            VisibleIndex="4" Width="100px">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="VIN" FieldName="VIN" ShowInCustomizationForm="True"
                                            VisibleIndex="5" Width="100px">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Nro.Motor" FieldName="NRO_MOTOR" ShowInCustomizationForm="True"
                                            VisibleIndex="6" Width="100px">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn Caption="Técnico" FieldName="TECNICO" 
                                            ShowInCustomizationForm="True" VisibleIndex="11" Width="200px">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn FieldName="ES_ANULADO" 
                                            ShowInCustomizationForm="True" Visible="False" VisibleIndex="12">
                                        </dx:GridViewDataTextColumn>
                                    </Columns>
                                    <SettingsBehavior AllowFocusedRow="True" />
                                    <SettingsPager PageSize="15">
                                    </SettingsPager>
                                    <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                        <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                        </LoadingPanelOnStatusBar>
                                        <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                        </LoadingPanel>
                                    </Images>
                                    <ImagesFilterControl>
                                        <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                        </LoadingPanel>
                                    </ImagesFilterControl>
                                    <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                        <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                        </Header>
                                        <LoadingPanel ImageSpacing="5px">
                                        </LoadingPanel>
                                    </Styles>
                                    <StylesPager>
                                        <PageNumber ForeColor="#3E4846">
                                        </PageNumber>
                                        <Summary ForeColor="#1E395B">
                                        </Summary>
                                    </StylesPager>
                                    <StylesEditors ButtonEditCellSpacing="0">
                                        <ProgressBar Height="21px">
                                        </ProgressBar>
                                    </StylesEditors>
                                </dx:ASPxGridView>
                            </dx:PanelContent>
                        </PanelCollection>
                    </dx:ASPxRoundPanel>
           
        <table>
            <tr>
                <td>
                    <dx:ASPxPopupControl ID="popupmsj" runat="server" AllowDragging="True" ClientInstanceName="popupmsj"
                        CloseAction="None" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                        EnableViewState="False" HeaderText="Mensaje" Modal="True" PopupHorizontalAlign="WindowCenter"
                        PopupVerticalAlign="WindowCenter" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                        Width="300px" EnableHotTrack="False">
                        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                        </LoadingPanelImage>
                        <HeaderStyle>
                            <Paddings PaddingLeft="7px" />
                            <Paddings PaddingLeft="10px" PaddingTop="4px" PaddingRight="4px" PaddingBottom="4px" />
                        </HeaderStyle>
                        <LoadingPanelStyle ImageSpacing="5px">
                        </LoadingPanelStyle>
                        <ContentCollection>
                            <dx:PopupControlContentControl ID="PopupControlContentControl5" runat="server" SupportsDisabledAttribute="True">
                                <br />
                                <dx:ASPxPanel ID="ASPxPanel2" runat="server" DefaultButton="btCreate">
                                    <PanelCollection>
                                        <dx:PanelContent ID="Panelpopup" runat="server">
                                            <table align="center">
                                                <tr>
                                                    <td colspan="2">
                                                        <dx:ASPxLabel ID="lblmsj" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                            CssPostfix="Office2010Blue">
                                                        </dx:ASPxLabel>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2">
                                                        &nbsp;
                                                    </td>
                                                </tr>
                                            </table>
                                            <table align="center">
                                                <tr>
                                                    <td align="center" style="width: 215px">
                                                        <dx:ASPxButton ID="btnAceptar" runat="server" Text="Aceptar" AutoPostBack="False"
                                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                            <ClientSideEvents Click="function(s, e) {popupmsj.Hide();}" />
                                                            <Image Url="~/Images/ok.png">
                                                            </Image>
                                                        </dx:ASPxButton>
                                                    </td>
                                                </tr>
                                            </table>
                                        </dx:PanelContent>
                                    </PanelCollection>
                                </dx:ASPxPanel>
                            </dx:PopupControlContentControl>
                        </ContentCollection>
                    </dx:ASPxPopupControl>
                </td>
                <td>
                <dx:ASPxPopupControl ID="PopupMsjConfirmacion" runat="server" AllowDragging="True"
                                    ClientInstanceName="PopupMsjConfirmacion" CloseAction="CloseButton" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                    CssPostfix="Office2010Blue" EnableViewState="False" HeaderText="Mensaje" Modal="True"
                                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                    Width="300px" EnableHotTrack="False">
                                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                                    </LoadingPanelImage>
                                    <HeaderStyle>
                                        <Paddings PaddingLeft="7px" />
                                    </HeaderStyle>
                                    <LoadingPanelStyle ImageSpacing="5px">
                                    </LoadingPanelStyle>
                                    <ContentCollection>
                                        <dx:PopupControlContentControl ID="PopupControlContentControl6" runat="server" SupportsDisabledAttribute="True">
                                            <br />
                                            <dx:ASPxPanel ID="ASPxPanel6" runat="server" DefaultButton="btCreate">
                                                <PanelCollection>
                                                    <dx:PanelContent ID="PanelContent5" runat="server">
                                                        <table>
                                                            <tr>
                                                                <td colspan="3">
                                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;¿Estas seguro de anular este registro
                                                                    ?
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="3">
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td>
                                                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                                </td>
                                                                <td class="filas2">
                                                                    <dx:ASPxButton ID="btnPopAceptar" runat="server" AutoPostBack="False" ClientInstanceName="btnPopAceptar"
                                                                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                                        OnClick="btnPopAceptar_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                        Text="Aceptar" Width="10px">
                                                                        <Image Url="~/Images/ok.png">
                                                                        </Image>
                                                                    </dx:ASPxButton>
                                                                </td>
                                                                <td class="filas2">
                                                                    <dx:ASPxButton ID="btnPopCancelar" runat="server" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                        Text="Cancelar" Width="10px">
                                                                        <ClientSideEvents Click="function(s, e) {
	PopupMsjConfirmacion.Hide();
}" />
                                                                        <Image Url="~/Images/delete.png">
                                                                        </Image>
                                                                    </dx:ASPxButton>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </dx:PanelContent>
                                                </PanelCollection>
                                            </dx:ASPxPanel>
                                        </dx:PopupControlContentControl>
                                    </ContentCollection>
                                </dx:ASPxPopupControl>
                
                
                
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
